package com.hnhy.hnhyscms_ws.service.impl;

import com.hnhy.hnhyscms_ws.dao.IOrdersDao;
import com.hnhy.hnhyscms_ws.entity.Orders;
import com.hnhy.hnhyscms_ws.service.IOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrdersService implements IOrdersService {
    @Autowired
    private IOrdersDao iOrdersDao;

    @Override
    public List<Orders> getAllOrders() { return iOrdersDao.getAllOrders(); }

    @Override
    public Orders getByOrderNo(String orderNo) { return iOrdersDao.getByOrderNo(orderNo); }

    @Override
    public List<Orders> getByCustomerNo(String customerNo) {
        return iOrdersDao.getByCustomerNo(customerNo);
    }

    @Override
    public void addOrders(Orders order) { iOrdersDao.addOrders(order); }

    @Override
    public Orders findMaxId() { return iOrdersDao.findMaxId(); }

    @Override
    public void updateType(Orders order) { iOrdersDao.updateType(order); }

    @Override
    public List<Orders> seeAbout(String customerNo,String createTime) {
        return iOrdersDao.seeAbout(customerNo,createTime);
    }
}
